package com.config;

import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * @author chengyadong
 * @date 2022/11/7 11:14
 * @description 容器刷新完成之后调用run方法测试
 */
@Component
public class ApplicationRunnerTest implements ApplicationRunner {
	//ApplicationArguments为命令行参数的封装
	@Override
	public void run(ApplicationArguments args) throws Exception {
		System.out.println("run方法测试");
	}
}
